<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: UIElement.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_u_i_element_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">UIElement.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;Alignment.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &quot;Color.h&quot;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &quot;ContextMenu.h&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &quot;ILayout.h&quot;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#include &quot;ITag.h&quot;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#include &quot;RoutedEvent.h&quot;</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &quot;RoutedEventArgs.h&quot;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;Thickness.h&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;WndBase.h&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;WndMsg.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keyword">namespace </span>sw</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>{</div>
<div class="foldopen" id="foldopen00023" data-start="{" data-end="};">
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html">   23</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> : <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_wnd_base.html">WndBase</a>, <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_i_layout.html">ILayout</a>, <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_i_tag.html">ITag</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>    {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>        <span class="keywordtype">bool</span> _arranging = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>        <span class="keywordtype">bool</span> _collapseWhenHide = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>        <a class="code hl_struct" href="structsw_1_1_size.html">Size</a> _desireSize{};</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>        <a class="code hl_struct" href="structsw_1_1_size.html">Size</a> _origionalSize{};</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>        <a class="code hl_struct" href="structsw_1_1_thickness.html">Thickness</a> _margin{};</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>        HorizontalAlignment _horizontalAlignment = HorizontalAlignment::Center;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>        VerticalAlignment _verticalAlignment = VerticalAlignment::Center;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>        <a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *_parent = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>        std::vector&lt;UIElement *&gt; _children{};</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span> </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>        std::vector&lt;UIElement *&gt; _childrenNotCollapsed{};</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>        std::map&lt;RoutedEventType, RoutedEvent&gt; _eventMap{};</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> _tag = 0;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> _layoutTag = 0;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>        <a class="code hl_class" href="classsw_1_1_context_menu.html">sw::ContextMenu</a> *_contextMenu = <span class="keyword">nullptr</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span> </div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>        <span class="keywordtype">double</span> _arrangeOffsetX = 0;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>        <span class="keywordtype">double</span> _arrangeOffsetY = 0;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno">  109</span>        <span class="keywordtype">double</span> _childRightmost = 0;</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>        <span class="keywordtype">double</span> _childBottommost = 0;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>        <span class="keywordtype">bool</span> _float = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno">  124</span>        <span class="keywordtype">bool</span> _tabStop = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>        <span class="keywordtype">bool</span> _drawFocusRect = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno">  134</span>        <a class="code hl_struct" href="structsw_1_1_color.html">Color</a> _backColor{KnownColor::White};</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno">  135</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>        <a class="code hl_struct" href="structsw_1_1_color.html">Color</a> _textColor{KnownColor::Black};</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>        <span class="keywordtype">bool</span> _transparent = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>        <span class="keywordtype">bool</span> _inheritTextColor = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>        <span class="keywordtype">bool</span> _useDefaultCursor = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno">  159</span>        <a class="code hl_class" href="classsw_1_1_dictionary.html">HCURSOR</a> _hCursor = <a class="code hl_class" href="classsw_1_1_dictionary.html">NULL</a>;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno">  160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno">  161</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a8fe2c0aebc77409d3fbdefbd79d45a1e">  165</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;Thickness&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a8fe2c0aebc77409d3fbdefbd79d45a1e">Margin</a>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a05b569383791dce14d9d6789e3a43d85">  170</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;HorizontalAlignment&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a05b569383791dce14d9d6789e3a43d85">HorizontalAlignment</a>;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno">  171</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ad9f49244beb6b854b436e8bbd18f4e21">  175</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;VerticalAlignment&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#ad9f49244beb6b854b436e8bbd18f4e21">VerticalAlignment</a>;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span> </div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a5c452519bad920ad9b91f9610ea202e0">  180</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;int&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a5c452519bad920ad9b91f9610ea202e0">ChildCount</a>;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno">  181</span> </div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a952e87aef0f2dfdec6bd98e944b6d891">  185</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a952e87aef0f2dfdec6bd98e944b6d891">CollapseWhenHide</a>;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ad825a0e12b75238b13f422f47ddf292b">  190</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">ReadOnlyProperty&lt;UIElement *&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#ad825a0e12b75238b13f422f47ddf292b">Parent</a>;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a895d79a2fa53382a43b3d02dee195360">  195</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;uint64_t&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a895d79a2fa53382a43b3d02dee195360">Tag</a>;</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a70e870fcabb76b1d74c06d50637f4f92">  200</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;uint64_t&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a70e870fcabb76b1d74c06d50637f4f92">LayoutTag</a>;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ae5706cc9d6ef3fab9176ccded231b99e">  205</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;sw::ContextMenu *&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#ae5706cc9d6ef3fab9176ccded231b99e">ContextMenu</a>;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ac0d66604bc2dd555c37688135878a7f0">  210</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#ac0d66604bc2dd555c37688135878a7f0">Float</a>;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span> </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a2b54e00e1e41af2a634ad694da3ffa98">  215</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a2b54e00e1e41af2a634ad694da3ffa98">TabStop</a>;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span> </div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aaf6897b58dc2899c37a3b395bfe124b9">  220</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;Color&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#aaf6897b58dc2899c37a3b395bfe124b9">BackColor</a>;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span> </div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aeaf2381fdffd82bd41e90c1a2cf69022">  225</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;Color&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#aeaf2381fdffd82bd41e90c1a2cf69022">TextColor</a>;</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span> </div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aa9d544a538ca2cfa3d022da61e7637e5">  230</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#aa9d544a538ca2cfa3d022da61e7637e5">Transparent</a>;</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span> </div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a7da2f416b1ed5038d8a3a59d6e44fcf5">  235</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_u_i_element.html#a7da2f416b1ed5038d8a3a59d6e44fcf5">InheritTextColor</a>;</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno">  237</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aeebf42b059a9962fd9c2ba64dcc309ca">  241</a></span>        <a class="code hl_function" href="classsw_1_1_u_i_element.html#aeebf42b059a9962fd9c2ba64dcc309ca">UIElement</a>();</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span> </div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#acbe28513919da89bf3f9a5102d6353c3">  247</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#acbe28513919da89bf3f9a5102d6353c3">~UIElement</a>() = 0;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16">  254</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16">RegisterRoutedEvent</a>(RoutedEventType eventType, <span class="keyword">const</span> RoutedEvent &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>);</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno">  263</span>        <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00264" data-start="{" data-end="}">
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a09946400c66a4bfd34cfb8918652a34a">  264</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a09946400c66a4bfd34cfb8918652a34a">RegisterRoutedEvent</a>(RoutedEventType eventType, T &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">obj</a>, <span class="keywordtype">void</span> (T::*<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>)(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;, <a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;))</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span>        {</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno">  266</span>            <span class="keywordflow">if</span> (<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span>                this-&gt;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69">UnregisterRoutedEvent</a>(eventType);</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span>                <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>            }</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>            T *<a class="code hl_class" href="classsw_1_1_dictionary.html">p</a> = &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">obj</a>;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>            this-&gt;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16">RegisterRoutedEvent</a>(eventType, [<a class="code hl_class" href="classsw_1_1_dictionary.html">p</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>](<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">sender</a>, <a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">e</a>) {</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>                (<a class="code hl_class" href="classsw_1_1_dictionary.html">p</a>-&gt;*<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>)(<a class="code hl_class" href="classsw_1_1_dictionary.html">sender</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">e</a>);</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>            });</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span>        }</div>
</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span> </div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span>        <span class="keyword">template</span> &lt;</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno">  282</span>            <span class="keyword">typename</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">TEventArgs</a>,</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno">  283</span>            <span class="keyword">typename</span> std::enable_if&lt;std::is_base_of&lt;RoutedEventArgs, TEventArgs&gt;::value, <span class="keywordtype">int</span>&gt;::type = 0,</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span>            <span class="keyword">typename</span> std::enable_if&lt;sw::_IsTypedRoutedEventArgs&lt;TEventArgs&gt;::value, <span class="keywordtype">int</span>&gt;::type      = 0&gt;</div>
<div class="foldopen" id="foldopen00285" data-start="{" data-end="}">
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a0fe3a905c1fd58baa911bc13aac9f181">  285</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a0fe3a905c1fd58baa911bc13aac9f181">RegisterRoutedEvent</a>(std::function&lt;<span class="keywordtype">void</span>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;, <a class="code hl_class" href="classsw_1_1_dictionary.html">TEventArgs</a> &amp;)&gt; <a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>)</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>        {</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>            <span class="keywordflow">if</span> (!<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>) {</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span>                this-&gt;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69">UnregisterRoutedEvent</a>(TEventArgs::EventType);</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno">  289</span>                <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span>            }</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno">  291</span>            this-&gt;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16">RegisterRoutedEvent</a>(TEventArgs::EventType, [<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>](<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">sender</a>, <a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">e</a>) {</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno">  292</span>                <a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">sender</a>, <span class="keyword">static_cast&lt;</span><a class="code hl_class" href="classsw_1_1_dictionary.html">TEventArgs</a> &amp;<span class="keyword">&gt;</span>(<a class="code hl_class" href="classsw_1_1_dictionary.html">e</a>));</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span>            });</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span>        }</div>
</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno">  295</span> </div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>        <span class="keyword">template</span> &lt;</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span>            <span class="keyword">typename</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">TEventArgs</a>,</div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span>            <span class="keyword">typename</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">THandleObj</a>,</div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span>            <span class="keyword">typename</span> std::enable_if&lt;std::is_base_of&lt;RoutedEventArgs, TEventArgs&gt;::value, <span class="keywordtype">int</span>&gt;::type = 0,</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span>            <span class="keyword">typename</span> std::enable_if&lt;sw::_IsTypedRoutedEventArgs&lt;TEventArgs&gt;::value, <span class="keywordtype">int</span>&gt;::type      = 0&gt;</div>
<div class="foldopen" id="foldopen00308" data-start="{" data-end="}">
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#abb7de98159e23ece7285c87a2592d7ea">  308</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#abb7de98159e23ece7285c87a2592d7ea">RegisterRoutedEvent</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">THandleObj</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">obj</a>, <span class="keywordtype">void</span> (<a class="code hl_class" href="classsw_1_1_dictionary.html">THandleObj</a>::*<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>)(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;, <a class="code hl_class" href="classsw_1_1_dictionary.html">TEventArgs</a> &amp;))</div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno">  309</span>        {</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno">  310</span>            <span class="keywordflow">if</span> (<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a> == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span>                this-&gt;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69">UnregisterRoutedEvent</a>(TEventArgs::EventType);</div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span>                <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno">  313</span>            }</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span>            <a class="code hl_class" href="classsw_1_1_dictionary.html">THandleObj</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">p</a> = &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">obj</a>;</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span>            this-&gt;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16">RegisterRoutedEvent</a>(TEventArgs::EventType, [<a class="code hl_class" href="classsw_1_1_dictionary.html">p</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>](<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">sender</a>, <a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">e</a>) {</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>                (<a class="code hl_class" href="classsw_1_1_dictionary.html">p</a>-&gt;*<a class="code hl_class" href="classsw_1_1_dictionary.html">handler</a>)(<a class="code hl_class" href="classsw_1_1_dictionary.html">sender</a>, <span class="keyword">static_cast&lt;</span><a class="code hl_class" href="classsw_1_1_dictionary.html">TEventArgs</a> &amp;<span class="keyword">&gt;</span>(<a class="code hl_class" href="classsw_1_1_dictionary.html">e</a>));</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>            });</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>        }</div>
</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span> </div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69">  324</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69">UnregisterRoutedEvent</a>(RoutedEventType eventType);</div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span> </div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#adf8152f31c5e109ba016316182bcec47">  330</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#adf8152f31c5e109ba016316182bcec47">IsRoutedEventRegistered</a>(RoutedEventType eventType);</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span> </div>
<div class="line"><a id="l00336" name="l00336"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a32893339be348aa964441954f3a31101">  336</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a32893339be348aa964441954f3a31101">AddChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00337" name="l00337"></a><span class="lineno">  337</span> </div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a1576ecfeec8347256a1c43a33169e1dc">  342</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a1576ecfeec8347256a1c43a33169e1dc">AddChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00343" name="l00343"></a><span class="lineno">  343</span> </div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ac020bc2d263e0dcffa59e0f474ea6e95">  348</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ac020bc2d263e0dcffa59e0f474ea6e95">AddChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> layoutTag);</div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno">  349</span> </div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a3e08b05c1a3ac1d95fd54a3ffaab81a0">  354</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a3e08b05c1a3ac1d95fd54a3ffaab81a0">AddChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> layoutTag);</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno">  355</span> </div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a622a68f74b9122c0de9c57e547b0a62b">  361</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a622a68f74b9122c0de9c57e547b0a62b">RemoveChildAt</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span> </div>
<div class="line"><a id="l00367" name="l00367"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a925353891b62cb6989410d788a8a4e90">  367</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a925353891b62cb6989410d788a8a4e90">RemoveChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00368" name="l00368"></a><span class="lineno">  368</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a9e825715639370ad2dd1f1276e6cb97f">  373</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a9e825715639370ad2dd1f1276e6cb97f">RemoveChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span> </div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a9585aee58045291cdca577e64f4a56e3">  378</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a9585aee58045291cdca577e64f4a56e3">ClearChildren</a>();</div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span> </div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a45cf2817669c10b59535acf8406a1a09">  385</a></span>        <span class="keywordtype">int</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a45cf2817669c10b59535acf8406a1a09">IndexOf</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span> </div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a8ff6722c909efcb10fbbc63476ab64d6">  392</a></span>        <span class="keywordtype">int</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a8ff6722c909efcb10fbbc63476ab64d6">IndexOf</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span> </div>
<div class="line"><a id="l00397" name="l00397"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a3dee0000f9edfdce128c7ca3c95ec4ab">  397</a></span>        <a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a3dee0000f9edfdce128c7ca3c95ec4ab">operator[]</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno">  398</span> </div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ae513a79247f76498e8f586d4ced1ff6e">  403</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ae513a79247f76498e8f586d4ced1ff6e">ShowContextMenu</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_point.html">Point</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">point</a>);</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span> </div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#abce4a26101de27550375c300b121d95d">  408</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#abce4a26101de27550375c300b121d95d">MoveToTop</a>();</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span> </div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a793adc7d50d0373d099b26b0a511b95d">  413</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a793adc7d50d0373d099b26b0a511b95d">MoveToBottom</a>();</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span> </div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a67bd7d81e6091118e4c97cc24c68543d">  418</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a67bd7d81e6091118e4c97cc24c68543d">IsRootElement</a>();</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span> </div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a560ae73ce93ab62df8d04170b11a1f39">  423</a></span>        <a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_function" href="classsw_1_1_u_i_element.html#a560ae73ce93ab62df8d04170b11a1f39">GetRootElement</a>();</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span> </div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a06a50134522985f88bb0db352b2be689">  428</a></span>        <a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_function" href="classsw_1_1_u_i_element.html#a06a50134522985f88bb0db352b2be689">GetNextElement</a>();</div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span> </div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a6968c7b711722677fb0b9dd7f5f80442">  433</a></span>        <a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_function" href="classsw_1_1_u_i_element.html#a6968c7b711722677fb0b9dd7f5f80442">GetNextTabStopElement</a>();</div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span> </div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a82ef0065e6b21ce989852862bc1a0e21">  438</a></span>        <a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a82ef0065e6b21ce989852862bc1a0e21">GetRealBackColor</a>();</div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span> </div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a18dde4a75ac25ae0458ae616eb9bca85">  443</a></span>        <a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a18dde4a75ac25ae0458ae616eb9bca85">GetRealTextColor</a>();</div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span> </div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a0ce7edc8a920e950a9a75cf1a84ea627">  449</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a0ce7edc8a920e950a9a75cf1a84ea627">SetCursor</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HCURSOR</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">hCursor</a>);</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span> </div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a848d8b2ee3267758e9a784be75b65e46">  455</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a848d8b2ee3267758e9a784be75b65e46">SetCursor</a>(StandardCursor <a class="code hl_class" href="classsw_1_1_dictionary.html">cursor</a>);</div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span> </div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a421400e98ae700b0593cda2ceec5c1f7">  460</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a421400e98ae700b0593cda2ceec5c1f7">ResetCursor</a>();</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span> </div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a7b2f0c77c7ec5d6d68bc3c772a72201a">  467</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a7b2f0c77c7ec5d6d68bc3c772a72201a">SetAlignment</a>(sw::HorizontalAlignment <a class="code hl_class" href="classsw_1_1_dictionary.html">horz</a>, sw::VerticalAlignment <a class="code hl_class" href="classsw_1_1_dictionary.html">vert</a>);</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span> </div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a78f1c406d3faac2afcb956e9375f65ec">  472</a></span>        <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a78f1c406d3faac2afcb956e9375f65ec">GetTag</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno">  473</span> </div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a09acdba6221e69b6ecb17b49975a1414">  477</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a09acdba6221e69b6ecb17b49975a1414">SetTag</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> tag) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno">  478</span> </div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aa89a8c272d1a9016d2586c6eeab64dce">  482</a></span>        <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">uint64_t</a> <a class="code hl_function" href="classsw_1_1_u_i_element.html#aa89a8c272d1a9016d2586c6eeab64dce">GetLayoutTag</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span> </div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a994aad366bc1f62ef7d53defa9456e64">  487</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a994aad366bc1f62ef7d53defa9456e64">GetChildLayoutCount</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno">  488</span> </div>
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a3683672f3c2fc8f80e4f808aac78d262">  492</a></span>        <span class="keyword">virtual</span> <a class="code hl_class" href="classsw_1_1_i_layout.html">ILayout</a> &amp;<a class="code hl_function" href="classsw_1_1_u_i_element.html#a3683672f3c2fc8f80e4f808aac78d262">GetChildLayoutAt</a>(<span class="keywordtype">int</span> index) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno">  493</span> </div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a633ace3fad478f1cc6480fa5512288fb">  497</a></span>        <span class="keyword">virtual</span> <a class="code hl_struct" href="structsw_1_1_size.html">Size</a> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a633ace3fad478f1cc6480fa5512288fb">GetDesireSize</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno">  498</span> </div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a3370e535f462680d66063e45b92807f6">  502</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a3370e535f462680d66063e45b92807f6">SetDesireSize</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_size.html">Size</a> &amp;size) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno">  503</span> </div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aef217f2655c4a746606bf302edc16cf4">  508</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#aef217f2655c4a746606bf302edc16cf4">Measure</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_size.html">Size</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">availableSize</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span> </div>
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ac8088cf88b28c6b4a5f93cd7a66a769e">  514</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ac8088cf88b28c6b4a5f93cd7a66a769e">Arrange</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structsw_1_1_rect.html">sw::Rect</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">finalPosition</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno">  515</span> </div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a0635558e1928f1144566a30b884303aa">  521</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a0635558e1928f1144566a30b884303aa">RaiseRoutedEvent</a>(RoutedEventType eventType);</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno">  522</span> </div>
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a135d4fc74c3bf7a434271620944b9f9b">  527</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a135d4fc74c3bf7a434271620944b9f9b">RaiseRoutedEvent</a>(<a class="code hl_struct" href="structsw_1_1_routed_event_args.html">RoutedEventArgs</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">eventArgs</a>);</div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span> </div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ab5832ef956cdc4face3e9dbd0c72e66e">  532</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ab5832ef956cdc4face3e9dbd0c72e66e">NotifyLayoutUpdated</a>();</div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span> </div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ae43f4f3c5a5c723d29f20e5590641388">  537</a></span>        <span class="keywordtype">double</span> &amp;<a class="code hl_function" href="classsw_1_1_u_i_element.html#ae43f4f3c5a5c723d29f20e5590641388">GetArrangeOffsetX</a>();</div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno">  538</span> </div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ab48faeb3dde62fbbe944a28dce2f3133">  542</a></span>        <span class="keywordtype">double</span> &amp;<a class="code hl_function" href="classsw_1_1_u_i_element.html#ab48faeb3dde62fbbe944a28dce2f3133">GetArrangeOffsetY</a>();</div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span> </div>
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a1f0bde7d9646b68dfe7251eba908cc08">  549</a></span>        <span class="keywordtype">double</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a1f0bde7d9646b68dfe7251eba908cc08">GetChildRightmost</a>(<span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">update</a>);</div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno">  550</span> </div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a7bda5652549fe9909e3b6b1383754b30">  556</a></span>        <span class="keywordtype">double</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a7bda5652549fe9909e3b6b1383754b30">GetChildBottommost</a>(<span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">update</a>);</div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span> </div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#acf5b0f1e5c2e24390b7f267db28c595a">  561</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#acf5b0f1e5c2e24390b7f267db28c595a">UpdateChildrenZOrder</a>();</div>
<div class="line"><a id="l00562" name="l00562"></a><span class="lineno">  562</span> </div>
<div class="line"><a id="l00566" name="l00566"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ae7e788c5e662363d6244414c5250a39d">  566</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ae7e788c5e662363d6244414c5250a39d">UpdateSiblingsZOrder</a>();</div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno">  567</span> </div>
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a0d9db652043bc5c5cd3483d82b35dcbe">  571</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a0d9db652043bc5c5cd3483d82b35dcbe">SetNextTabStopFocus</a>();</div>
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno">  572</span> </div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#af60b45de9f894f4fb152491413f1fa73">  578</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#af60b45de9f894f4fb152491413f1fa73">SetBackColor</a>(<a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">color</a>, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">redraw</a>);</div>
<div class="line"><a id="l00579" name="l00579"></a><span class="lineno">  579</span> </div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ab8557638ba9975346d62f5339de55664">  585</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ab8557638ba9975346d62f5339de55664">SetTextColor</a>(<a class="code hl_struct" href="structsw_1_1_color.html">Color</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">color</a>, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">redraw</a>);</div>
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno">  586</span> </div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ae3e134d807af7614e1cc812abb860762">  591</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ae3e134d807af7614e1cc812abb860762">OnAddedChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span> </div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aadedba1a9bca85555b70bc247b8ef835">  597</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#aadedba1a9bca85555b70bc247b8ef835">OnRemovedChild</a>(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>);</div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span> </div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a0f0826e68eb96f7b7dd7882c4c0171b9">  602</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a0f0826e68eb96f7b7dd7882c4c0171b9">OnTabStop</a>();</div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span> </div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a78d190af4c3b1768776db0ebd6d0d71a">  607</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a78d190af4c3b1768776db0ebd6d0d71a">OnDrawFocusRect</a>();</div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span> </div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ad685138138402ddd8a5fde67bbb85a45">  613</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ad685138138402ddd8a5fde67bbb85a45">SetParent</a>(<a class="code hl_class" href="classsw_1_1_wnd_base.html">WndBase</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">parent</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno">  614</span> </div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a87b86762809c8e4a0ace610a977caa78">  619</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a87b86762809c8e4a0ace610a977caa78">ParentChanged</a>(<a class="code hl_class" href="classsw_1_1_wnd_base.html">WndBase</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">newParent</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno">  620</span> </div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a57a1cb1cc82765f93b21fa8261ec2e50">  624</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a57a1cb1cc82765f93b21fa8261ec2e50">OnEndPaint</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno">  625</span> </div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a1c1f0b6a491e639c76e46a29bff00d65">  630</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a1c1f0b6a491e639c76e46a29bff00d65">OnClose</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span> </div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a6482d770b94d6b40da944d64730e8237">  637</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a6482d770b94d6b40da944d64730e8237">OnMove</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> newClientPosition) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno">  638</span> </div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#af4f4d3a0d23a886c0257c439821f5809">  644</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#af4f4d3a0d23a886c0257c439821f5809">OnSize</a>(<a class="code hl_struct" href="structsw_1_1_size.html">Size</a> newClientSize) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno">  645</span> </div>
<div class="line"><a id="l00649" name="l00649"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a7e1fbc142c7cfe4a4a60959daf0753bc">  649</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a7e1fbc142c7cfe4a4a60959daf0753bc">OnTextChanged</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno">  650</span> </div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a98812949329f77e400f7e0e381c56c3d">  654</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a98812949329f77e400f7e0e381c56c3d">VisibleChanged</a>(<span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">newVisible</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span> </div>
<div class="line"><a id="l00661" name="l00661"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a95c6eb88c9f93bb135da9ee303ada3be">  661</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a95c6eb88c9f93bb135da9ee303ada3be">OnSetFocus</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">hPrevFocus</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00662" name="l00662"></a><span class="lineno">  662</span> </div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a6b8833ac8fe8798edd0480f737aea426">  668</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a6b8833ac8fe8798edd0480f737aea426">OnKillFocus</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">hNextFocus</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span> </div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a3a92f96787dd7981f0c1934ff618b36e">  676</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a3a92f96787dd7981f0c1934ff618b36e">OnChar</a>(<span class="keywordtype">wchar_t</span> ch, <a class="code hl_struct" href="structsw_1_1_key_flags.html">KeyFlags</a> flags) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno">  677</span> </div>
<div class="line"><a id="l00684" name="l00684"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ab7adb46425947c0b14b3bc5b60f6fdac">  684</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ab7adb46425947c0b14b3bc5b60f6fdac">OnKeyDown</a>(VirtualKey key, <a class="code hl_struct" href="structsw_1_1_key_flags.html">KeyFlags</a> flags) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00685" name="l00685"></a><span class="lineno">  685</span> </div>
<div class="line"><a id="l00692" name="l00692"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ad2be8df1de363a180ef2c32606e2fc74">  692</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ad2be8df1de363a180ef2c32606e2fc74">OnKeyUp</a>(VirtualKey key, <a class="code hl_struct" href="structsw_1_1_key_flags.html">KeyFlags</a> flags) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00693" name="l00693"></a><span class="lineno">  693</span> </div>
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a2589db7fdbba4423307e64f6289a4650">  700</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a2589db7fdbba4423307e64f6289a4650">OnMouseMove</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno">  701</span> </div>
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ac65b1a6485b454004801a296c788db6a">  706</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ac65b1a6485b454004801a296c788db6a">OnMouseLeave</a>() <span class="keyword">override</span>;</div>
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno">  707</span> </div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a4d8e08dc4281b7bf67bb60c9f92fbde0">  715</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a4d8e08dc4281b7bf67bb60c9f92fbde0">OnMouseWheel</a>(<span class="keywordtype">int</span> wheelDelta, <a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span> </div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a307e0afb1a83b8a31a54844089483f76">  723</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a307e0afb1a83b8a31a54844089483f76">OnMouseLeftButtonDown</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno">  724</span> </div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#ad3360842adfd2298d4d505305250a6eb">  731</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#ad3360842adfd2298d4d505305250a6eb">OnMouseLeftButtonUp</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno">  732</span> </div>
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a8d1a3049967256fa8306f1364ba209c9">  739</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a8d1a3049967256fa8306f1364ba209c9">OnMouseRightButtonDown</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno">  740</span> </div>
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a42ce311746de9bace84a221efeed7e1f">  747</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a42ce311746de9bace84a221efeed7e1f">OnMouseRightButtonUp</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00748" name="l00748"></a><span class="lineno">  748</span> </div>
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aabbfe747a3396f5cb08e952cd583c825">  755</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#aabbfe747a3396f5cb08e952cd583c825">OnMouseMiddleButtonDown</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00756" name="l00756"></a><span class="lineno">  756</span> </div>
<div class="line"><a id="l00763" name="l00763"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a62da7e785db521278afb58d28e30f4fa">  763</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a62da7e785db521278afb58d28e30f4fa">OnMouseMiddleButtonUp</a>(<a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition, MouseKey keyState) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00764" name="l00764"></a><span class="lineno">  764</span> </div>
<div class="line"><a id="l00771" name="l00771"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a656bb4995529a018d8c823fc45abf233">  771</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a656bb4995529a018d8c823fc45abf233">OnContextMenu</a>(<span class="keywordtype">bool</span> isKeyboardMsg, <a class="code hl_struct" href="structsw_1_1_point.html">Point</a> mousePosition) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00772" name="l00772"></a><span class="lineno">  772</span> </div>
<div class="line"><a id="l00777" name="l00777"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#aca1d15ee60f06d11aeccadfc92ed23d2">  777</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#aca1d15ee60f06d11aeccadfc92ed23d2">OnMenuCommand</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00778" name="l00778"></a><span class="lineno">  778</span> </div>
<div class="line"><a id="l00785" name="l00785"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a5e16c574d3fc57a9da8ac8d9c2bf1a24">  785</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a5e16c574d3fc57a9da8ac8d9c2bf1a24">OnColor</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HDC</a> <a class="code hl_class" href="classsw_1_1_dictionary.html">hdc</a>, <a class="code hl_class" href="classsw_1_1_dictionary.html">HBRUSH</a> &amp;<a class="code hl_class" href="classsw_1_1_dictionary.html">hRetBrush</a>) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00786" name="l00786"></a><span class="lineno">  786</span> </div>
<div class="line"><a id="l00795" name="l00795"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a6175e146290ecff80407d4c8afa1cf05">  795</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a6175e146290ecff80407d4c8afa1cf05">OnSetCursor</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HWND</a> hwnd, HitTestResult <a class="code hl_class" href="classsw_1_1_dictionary.html">hitTest</a>, <span class="keywordtype">int</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">message</a>, <span class="keywordtype">bool</span> &amp;result) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00796" name="l00796"></a><span class="lineno">  796</span> </div>
<div class="line"><a id="l00802" name="l00802"></a><span class="lineno"><a class="line" href="classsw_1_1_u_i_element.html#a6a331869736475e10e2f861b5a242565">  802</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_u_i_element.html#a6a331869736475e10e2f861b5a242565">OnDropFiles</a>(<a class="code hl_class" href="classsw_1_1_dictionary.html">HDROP</a> hDrop) <span class="keyword">override</span>;</div>
<div class="line"><a id="l00803" name="l00803"></a><span class="lineno">  803</span> </div>
<div class="line"><a id="l00804" name="l00804"></a><span class="lineno">  804</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00810" name="l00810"></a><span class="lineno">  810</span>        <span class="keywordtype">bool</span> _SetHorzAlignment(sw::HorizontalAlignment <a class="code hl_class" href="classsw_1_1_dictionary.html">value</a>);</div>
<div class="line"><a id="l00811" name="l00811"></a><span class="lineno">  811</span> </div>
<div class="line"><a id="l00817" name="l00817"></a><span class="lineno">  817</span>        <span class="keywordtype">bool</span> _SetVertAlignment(sw::VerticalAlignment <a class="code hl_class" href="classsw_1_1_dictionary.html">value</a>);</div>
<div class="line"><a id="l00818" name="l00818"></a><span class="lineno">  818</span> </div>
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno">  822</span>        <span class="keyword">static</span> <a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *_GetNextElement(<a class="code hl_class" href="classsw_1_1_u_i_element.html">UIElement</a> *<a class="code hl_class" href="classsw_1_1_dictionary.html">element</a>, <span class="keywordtype">bool</span> <a class="code hl_class" href="classsw_1_1_dictionary.html">searchChildren</a> = <span class="keyword">true</span>);</div>
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno">  823</span>    };</div>
</div>
<div class="line"><a id="l00824" name="l00824"></a><span class="lineno">  824</span>}</div>
<div class="ttc" id="aclasssw_1_1_context_menu_html"><div class="ttname"><a href="classsw_1_1_context_menu.html">sw::ContextMenu</a></div><div class="ttdoc">上下文菜单</div><div class="ttdef"><b>Definition</b> ContextMenu.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_dictionary_html"><div class="ttname"><a href="classsw_1_1_dictionary.html">sw::Dictionary</a></div><div class="ttdoc">字典类，内部维护了一个指向std::map的智能指针</div><div class="ttdef"><b>Definition</b> Dictionary.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_i_layout_html"><div class="ttname"><a href="classsw_1_1_i_layout.html">sw::ILayout</a></div><div class="ttdoc">布局接口</div><div class="ttdef"><b>Definition</b> ILayout.h:13</div></div>
<div class="ttc" id="aclasssw_1_1_i_tag_html"><div class="ttname"><a href="classsw_1_1_i_tag.html">sw::ITag</a></div><div class="ttdoc">Tag接口</div><div class="ttdef"><b>Definition</b> ITag.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html"><div class="ttname"><a href="classsw_1_1_u_i_element.html">sw::UIElement</a></div><div class="ttdoc">表示界面中的元素</div><div class="ttdef"><b>Definition</b> UIElement.h:24</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a05b569383791dce14d9d6789e3a43d85"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a05b569383791dce14d9d6789e3a43d85">sw::UIElement::HorizontalAlignment</a></div><div class="ttdeci">const Property&lt; HorizontalAlignment &gt; HorizontalAlignment</div><div class="ttdoc">水平对齐方式</div><div class="ttdef"><b>Definition</b> UIElement.h:170</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a0635558e1928f1144566a30b884303aa"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a0635558e1928f1144566a30b884303aa">sw::UIElement::RaiseRoutedEvent</a></div><div class="ttdeci">void RaiseRoutedEvent(RoutedEventType eventType)</div><div class="ttdoc">触发路由事件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a06a50134522985f88bb0db352b2be689"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a06a50134522985f88bb0db352b2be689">sw::UIElement::GetNextElement</a></div><div class="ttdeci">UIElement * GetNextElement()</div><div class="ttdoc">获取当前元素在界面树上的下一个节点，若已是最后一个节点则返回根节点</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a09946400c66a4bfd34cfb8918652a34a"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a09946400c66a4bfd34cfb8918652a34a">sw::UIElement::RegisterRoutedEvent</a></div><div class="ttdeci">void RegisterRoutedEvent(RoutedEventType eventType, T &amp;obj, void(T::*handler)(UIElement &amp;, RoutedEventArgs &amp;))</div><div class="ttdoc">注册成员函数作为路由事件处理函数，当事件已注册时会覆盖已注册的函数</div><div class="ttdef"><b>Definition</b> UIElement.h:264</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a09acdba6221e69b6ecb17b49975a1414"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a09acdba6221e69b6ecb17b49975a1414">sw::UIElement::SetTag</a></div><div class="ttdeci">virtual void SetTag(uint64_t tag) override</div><div class="ttdoc">设置Tag</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a0cbfb44f8280a3e5e01b71906e588d69"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69">sw::UIElement::UnregisterRoutedEvent</a></div><div class="ttdeci">void UnregisterRoutedEvent(RoutedEventType eventType)</div><div class="ttdoc">取消对应类型路由事件的注册</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a0ce7edc8a920e950a9a75cf1a84ea627"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a0ce7edc8a920e950a9a75cf1a84ea627">sw::UIElement::SetCursor</a></div><div class="ttdeci">void SetCursor(HCURSOR hCursor)</div><div class="ttdoc">设置鼠标样式</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a0d9db652043bc5c5cd3483d82b35dcbe"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a0d9db652043bc5c5cd3483d82b35dcbe">sw::UIElement::SetNextTabStopFocus</a></div><div class="ttdeci">void SetNextTabStopFocus()</div><div class="ttdoc">设置下一个TabStop属性为true的元素为焦点元素</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a0f0826e68eb96f7b7dd7882c4c0171b9"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a0f0826e68eb96f7b7dd7882c4c0171b9">sw::UIElement::OnTabStop</a></div><div class="ttdeci">virtual void OnTabStop()</div><div class="ttdoc">通过tab键将焦点移动到当前元素时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a0fe3a905c1fd58baa911bc13aac9f181"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a0fe3a905c1fd58baa911bc13aac9f181">sw::UIElement::RegisterRoutedEvent</a></div><div class="ttdeci">void RegisterRoutedEvent(std::function&lt; void(UIElement &amp;, TEventArgs &amp;)&gt; handler)</div><div class="ttdoc">根据事件参数类型注册路由事件</div><div class="ttdef"><b>Definition</b> UIElement.h:285</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a135d4fc74c3bf7a434271620944b9f9b"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a135d4fc74c3bf7a434271620944b9f9b">sw::UIElement::RaiseRoutedEvent</a></div><div class="ttdeci">void RaiseRoutedEvent(RoutedEventArgs &amp;eventArgs)</div><div class="ttdoc">触发路由事件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a1576ecfeec8347256a1c43a33169e1dc"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a1576ecfeec8347256a1c43a33169e1dc">sw::UIElement::AddChild</a></div><div class="ttdeci">bool AddChild(UIElement &amp;element)</div><div class="ttdoc">添加子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a18dde4a75ac25ae0458ae616eb9bca85"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a18dde4a75ac25ae0458ae616eb9bca85">sw::UIElement::GetRealTextColor</a></div><div class="ttdeci">Color GetRealTextColor()</div><div class="ttdoc">获取当前要显示的文本颜色：当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色，否则返回当前元素的文本颜色</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a1c1f0b6a491e639c76e46a29bff00d65"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a1c1f0b6a491e639c76e46a29bff00d65">sw::UIElement::OnClose</a></div><div class="ttdeci">virtual bool OnClose() override</div><div class="ttdoc">接收到WM_CLOSE时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a1f0bde7d9646b68dfe7251eba908cc08"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a1f0bde7d9646b68dfe7251eba908cc08">sw::UIElement::GetChildRightmost</a></div><div class="ttdeci">double GetChildRightmost(bool update)</div><div class="ttdoc">获取所有子元素在当前元素中最右边的位置（只考虑参与布局的子窗口且忽略悬浮的元素）</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a2589db7fdbba4423307e64f6289a4650"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a2589db7fdbba4423307e64f6289a4650">sw::UIElement::OnMouseMove</a></div><div class="ttdeci">virtual bool OnMouseMove(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_MOUSEMOVE时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a2b54e00e1e41af2a634ad694da3ffa98"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a2b54e00e1e41af2a634ad694da3ffa98">sw::UIElement::TabStop</a></div><div class="ttdeci">const Property&lt; bool &gt; TabStop</div><div class="ttdoc">表示用户是否可以通过按下Tab键将焦点移动到当前元素</div><div class="ttdef"><b>Definition</b> UIElement.h:215</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a307e0afb1a83b8a31a54844089483f76"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a307e0afb1a83b8a31a54844089483f76">sw::UIElement::OnMouseLeftButtonDown</a></div><div class="ttdeci">virtual bool OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_LBUTTONDOWN时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a32893339be348aa964441954f3a31101"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a32893339be348aa964441954f3a31101">sw::UIElement::AddChild</a></div><div class="ttdeci">bool AddChild(UIElement *element)</div><div class="ttdoc">添加子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a3370e535f462680d66063e45b92807f6"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a3370e535f462680d66063e45b92807f6">sw::UIElement::SetDesireSize</a></div><div class="ttdeci">virtual void SetDesireSize(const Size &amp;size) override</div><div class="ttdoc">设置当前控件所需的尺寸</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a3683672f3c2fc8f80e4f808aac78d262"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a3683672f3c2fc8f80e4f808aac78d262">sw::UIElement::GetChildLayoutAt</a></div><div class="ttdeci">virtual ILayout &amp; GetChildLayoutAt(int index) override</div><div class="ttdoc">获取对应索引处的子控件，使用此函数前必须先调用GetChildLayoutCount</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a3a92f96787dd7981f0c1934ff618b36e"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a3a92f96787dd7981f0c1934ff618b36e">sw::UIElement::OnChar</a></div><div class="ttdeci">virtual bool OnChar(wchar_t ch, KeyFlags flags) override</div><div class="ttdoc">接收到WM_CHAR时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a3dee0000f9edfdce128c7ca3c95ec4ab"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a3dee0000f9edfdce128c7ca3c95ec4ab">sw::UIElement::operator[]</a></div><div class="ttdeci">UIElement &amp; operator[](int index) const</div><div class="ttdoc">通过索引获取子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a3e08b05c1a3ac1d95fd54a3ffaab81a0"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a3e08b05c1a3ac1d95fd54a3ffaab81a0">sw::UIElement::AddChild</a></div><div class="ttdeci">bool AddChild(UIElement &amp;element, uint64_t layoutTag)</div><div class="ttdoc">添加子控件并设置布局标记</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a421400e98ae700b0593cda2ceec5c1f7"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a421400e98ae700b0593cda2ceec5c1f7">sw::UIElement::ResetCursor</a></div><div class="ttdeci">void ResetCursor()</div><div class="ttdoc">将鼠标样式设置为默认样式</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a42ce311746de9bace84a221efeed7e1f"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a42ce311746de9bace84a221efeed7e1f">sw::UIElement::OnMouseRightButtonUp</a></div><div class="ttdeci">virtual bool OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_RBUTTONUP时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a45cf2817669c10b59535acf8406a1a09"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a45cf2817669c10b59535acf8406a1a09">sw::UIElement::IndexOf</a></div><div class="ttdeci">int IndexOf(UIElement *element)</div><div class="ttdoc">获取指定元素的索引</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a4d8e08dc4281b7bf67bb60c9f92fbde0"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a4d8e08dc4281b7bf67bb60c9f92fbde0">sw::UIElement::OnMouseWheel</a></div><div class="ttdeci">virtual bool OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_MOUSEWHEEL时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a560ae73ce93ab62df8d04170b11a1f39"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a560ae73ce93ab62df8d04170b11a1f39">sw::UIElement::GetRootElement</a></div><div class="ttdeci">UIElement * GetRootElement()</div><div class="ttdoc">获取当前元素所在界面树的根节点</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a57a1cb1cc82765f93b21fa8261ec2e50"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a57a1cb1cc82765f93b21fa8261ec2e50">sw::UIElement::OnEndPaint</a></div><div class="ttdeci">virtual void OnEndPaint() override</div><div class="ttdoc">在OnPaint函数完成之后调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a5c452519bad920ad9b91f9610ea202e0"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a5c452519bad920ad9b91f9610ea202e0">sw::UIElement::ChildCount</a></div><div class="ttdeci">const ReadOnlyProperty&lt; int &gt; ChildCount</div><div class="ttdoc">子控件数量</div><div class="ttdef"><b>Definition</b> UIElement.h:180</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a5e16c574d3fc57a9da8ac8d9c2bf1a24"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a5e16c574d3fc57a9da8ac8d9c2bf1a24">sw::UIElement::OnColor</a></div><div class="ttdeci">virtual bool OnColor(HDC hdc, HBRUSH &amp;hRetBrush) override</div><div class="ttdoc">父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a6175e146290ecff80407d4c8afa1cf05"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a6175e146290ecff80407d4c8afa1cf05">sw::UIElement::OnSetCursor</a></div><div class="ttdeci">virtual bool OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &amp;result) override</div><div class="ttdoc">接收到WM_SETCURSOR消息时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a622a68f74b9122c0de9c57e547b0a62b"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a622a68f74b9122c0de9c57e547b0a62b">sw::UIElement::RemoveChildAt</a></div><div class="ttdeci">bool RemoveChildAt(int index)</div><div class="ttdoc">移除指定索引处的子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a62c0e59790735abb3f0a9f002e651c16"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16">sw::UIElement::RegisterRoutedEvent</a></div><div class="ttdeci">void RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &amp;handler)</div><div class="ttdoc">注册路由事件处理函数，当事件已注册时会覆盖已注册的函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a62da7e785db521278afb58d28e30f4fa"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a62da7e785db521278afb58d28e30f4fa">sw::UIElement::OnMouseMiddleButtonUp</a></div><div class="ttdeci">virtual bool OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_MBUTTONUP时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a633ace3fad478f1cc6480fa5512288fb"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a633ace3fad478f1cc6480fa5512288fb">sw::UIElement::GetDesireSize</a></div><div class="ttdeci">virtual Size GetDesireSize() override</div><div class="ttdoc">获取控件所需尺寸</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a6482d770b94d6b40da944d64730e8237"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a6482d770b94d6b40da944d64730e8237">sw::UIElement::OnMove</a></div><div class="ttdeci">virtual bool OnMove(Point newClientPosition) override</div><div class="ttdoc">接收到WM_MOVE时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a656bb4995529a018d8c823fc45abf233"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a656bb4995529a018d8c823fc45abf233">sw::UIElement::OnContextMenu</a></div><div class="ttdeci">virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition) override</div><div class="ttdoc">接收到WM_CONTEXTMENU后调用目标控件的该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a67bd7d81e6091118e4c97cc24c68543d"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a67bd7d81e6091118e4c97cc24c68543d">sw::UIElement::IsRootElement</a></div><div class="ttdeci">bool IsRootElement()</div><div class="ttdoc">判断当前元素是否为根节点</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a6968c7b711722677fb0b9dd7f5f80442"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a6968c7b711722677fb0b9dd7f5f80442">sw::UIElement::GetNextTabStopElement</a></div><div class="ttdeci">UIElement * GetNextTabStopElement()</div><div class="ttdoc">获取下一个TabStop属性为true的元素</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a6a331869736475e10e2f861b5a242565"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a6a331869736475e10e2f861b5a242565">sw::UIElement::OnDropFiles</a></div><div class="ttdeci">virtual bool OnDropFiles(HDROP hDrop) override</div><div class="ttdoc">接收到WM_DROPFILES时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a6b8833ac8fe8798edd0480f737aea426"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a6b8833ac8fe8798edd0480f737aea426">sw::UIElement::OnKillFocus</a></div><div class="ttdeci">virtual bool OnKillFocus(HWND hNextFocus) override</div><div class="ttdoc">接收到WM_KILLFOCUS时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a70e870fcabb76b1d74c06d50637f4f92"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a70e870fcabb76b1d74c06d50637f4f92">sw::UIElement::LayoutTag</a></div><div class="ttdeci">const Property&lt; uint64_t &gt; LayoutTag</div><div class="ttdoc">布局标记，对于不同的布局有不同含义</div><div class="ttdef"><b>Definition</b> UIElement.h:200</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a78d190af4c3b1768776db0ebd6d0d71a"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a78d190af4c3b1768776db0ebd6d0d71a">sw::UIElement::OnDrawFocusRect</a></div><div class="ttdeci">virtual void OnDrawFocusRect()</div><div class="ttdoc">绘制虚线框时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a78f1c406d3faac2afcb956e9375f65ec"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a78f1c406d3faac2afcb956e9375f65ec">sw::UIElement::GetTag</a></div><div class="ttdeci">virtual uint64_t GetTag() override</div><div class="ttdoc">获取Tag</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a793adc7d50d0373d099b26b0a511b95d"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a793adc7d50d0373d099b26b0a511b95d">sw::UIElement::MoveToBottom</a></div><div class="ttdeci">void MoveToBottom()</div><div class="ttdoc">移动到界面底部</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a7b2f0c77c7ec5d6d68bc3c772a72201a"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a7b2f0c77c7ec5d6d68bc3c772a72201a">sw::UIElement::SetAlignment</a></div><div class="ttdeci">void SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)</div><div class="ttdoc">设置对齐方式</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a7bda5652549fe9909e3b6b1383754b30"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a7bda5652549fe9909e3b6b1383754b30">sw::UIElement::GetChildBottommost</a></div><div class="ttdeci">double GetChildBottommost(bool update)</div><div class="ttdoc">获取所有子元素在当前元素中最底边的位置（只考虑参与布局的子窗口且忽略悬浮的元素）</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a7da2f416b1ed5038d8a3a59d6e44fcf5"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a7da2f416b1ed5038d8a3a59d6e44fcf5">sw::UIElement::InheritTextColor</a></div><div class="ttdeci">const Property&lt; bool &gt; InheritTextColor</div><div class="ttdoc">是否继承父元素的文本颜色</div><div class="ttdef"><b>Definition</b> UIElement.h:235</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a7e1fbc142c7cfe4a4a60959daf0753bc"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a7e1fbc142c7cfe4a4a60959daf0753bc">sw::UIElement::OnTextChanged</a></div><div class="ttdeci">virtual void OnTextChanged() override</div><div class="ttdoc">Text属性更改时调用此函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a82ef0065e6b21ce989852862bc1a0e21"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a82ef0065e6b21ce989852862bc1a0e21">sw::UIElement::GetRealBackColor</a></div><div class="ttdeci">Color GetRealBackColor()</div><div class="ttdoc">获取当前要显示的背景颜色：当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色，否则返回当前元素的背景颜色</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a848d8b2ee3267758e9a784be75b65e46"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a848d8b2ee3267758e9a784be75b65e46">sw::UIElement::SetCursor</a></div><div class="ttdeci">void SetCursor(StandardCursor cursor)</div><div class="ttdoc">设置鼠标样式</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a87b86762809c8e4a0ace610a977caa78"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a87b86762809c8e4a0ace610a977caa78">sw::UIElement::ParentChanged</a></div><div class="ttdeci">virtual void ParentChanged(WndBase *newParent) override</div><div class="ttdoc">父窗口改变时调用此函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a895d79a2fa53382a43b3d02dee195360"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a895d79a2fa53382a43b3d02dee195360">sw::UIElement::Tag</a></div><div class="ttdeci">const Property&lt; uint64_t &gt; Tag</div><div class="ttdoc">储存用户自定义信息的标记</div><div class="ttdef"><b>Definition</b> UIElement.h:195</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a8d1a3049967256fa8306f1364ba209c9"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a8d1a3049967256fa8306f1364ba209c9">sw::UIElement::OnMouseRightButtonDown</a></div><div class="ttdeci">virtual bool OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_RBUTTONDOWN时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a8fe2c0aebc77409d3fbdefbd79d45a1e"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a8fe2c0aebc77409d3fbdefbd79d45a1e">sw::UIElement::Margin</a></div><div class="ttdeci">const Property&lt; Thickness &gt; Margin</div><div class="ttdoc">边距</div><div class="ttdef"><b>Definition</b> UIElement.h:165</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a8ff6722c909efcb10fbbc63476ab64d6"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a8ff6722c909efcb10fbbc63476ab64d6">sw::UIElement::IndexOf</a></div><div class="ttdeci">int IndexOf(UIElement &amp;element)</div><div class="ttdoc">获取指定元素的索引</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a925353891b62cb6989410d788a8a4e90"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a925353891b62cb6989410d788a8a4e90">sw::UIElement::RemoveChild</a></div><div class="ttdeci">bool RemoveChild(UIElement *element)</div><div class="ttdoc">移除子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a952e87aef0f2dfdec6bd98e944b6d891"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a952e87aef0f2dfdec6bd98e944b6d891">sw::UIElement::CollapseWhenHide</a></div><div class="ttdeci">const Property&lt; bool &gt; CollapseWhenHide</div><div class="ttdoc">是否在不可见时不参与布局</div><div class="ttdef"><b>Definition</b> UIElement.h:185</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a9585aee58045291cdca577e64f4a56e3"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a9585aee58045291cdca577e64f4a56e3">sw::UIElement::ClearChildren</a></div><div class="ttdeci">void ClearChildren()</div><div class="ttdoc">移除所有子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a95c6eb88c9f93bb135da9ee303ada3be"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a95c6eb88c9f93bb135da9ee303ada3be">sw::UIElement::OnSetFocus</a></div><div class="ttdeci">virtual bool OnSetFocus(HWND hPrevFocus) override</div><div class="ttdoc">接收到WM_SETFOCUS时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a98812949329f77e400f7e0e381c56c3d"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a98812949329f77e400f7e0e381c56c3d">sw::UIElement::VisibleChanged</a></div><div class="ttdeci">virtual void VisibleChanged(bool newVisible) override</div><div class="ttdoc">Visible属性改变时调用此函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a994aad366bc1f62ef7d53defa9456e64"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a994aad366bc1f62ef7d53defa9456e64">sw::UIElement::GetChildLayoutCount</a></div><div class="ttdeci">virtual int GetChildLayoutCount() override</div><div class="ttdoc">获取参与布局的子控件数量</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_a9e825715639370ad2dd1f1276e6cb97f"><div class="ttname"><a href="classsw_1_1_u_i_element.html#a9e825715639370ad2dd1f1276e6cb97f">sw::UIElement::RemoveChild</a></div><div class="ttdeci">bool RemoveChild(UIElement &amp;element)</div><div class="ttdoc">移除子控件</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aa89a8c272d1a9016d2586c6eeab64dce"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aa89a8c272d1a9016d2586c6eeab64dce">sw::UIElement::GetLayoutTag</a></div><div class="ttdeci">virtual uint64_t GetLayoutTag() override</div><div class="ttdoc">获取布局标记</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aa9d544a538ca2cfa3d022da61e7637e5"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aa9d544a538ca2cfa3d022da61e7637e5">sw::UIElement::Transparent</a></div><div class="ttdeci">const Property&lt; bool &gt; Transparent</div><div class="ttdoc">是否使用透明背景（此属性并非真正意义上的透明，将该属性设为true可继承父元素的背景颜色）</div><div class="ttdef"><b>Definition</b> UIElement.h:230</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aabbfe747a3396f5cb08e952cd583c825"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aabbfe747a3396f5cb08e952cd583c825">sw::UIElement::OnMouseMiddleButtonDown</a></div><div class="ttdeci">virtual bool OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_MBUTTONDOWN时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aadedba1a9bca85555b70bc247b8ef835"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aadedba1a9bca85555b70bc247b8ef835">sw::UIElement::OnRemovedChild</a></div><div class="ttdeci">virtual void OnRemovedChild(UIElement &amp;element)</div><div class="ttdoc">移除子元素后调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aaf6897b58dc2899c37a3b395bfe124b9"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aaf6897b58dc2899c37a3b395bfe124b9">sw::UIElement::BackColor</a></div><div class="ttdeci">const Property&lt; Color &gt; BackColor</div><div class="ttdoc">背景颜色，修改该属性会同时将Transparent属性设为false，对于部分控件该属性可能不生效</div><div class="ttdef"><b>Definition</b> UIElement.h:220</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ab48faeb3dde62fbbe944a28dce2f3133"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ab48faeb3dde62fbbe944a28dce2f3133">sw::UIElement::GetArrangeOffsetY</a></div><div class="ttdeci">double &amp; GetArrangeOffsetY()</div><div class="ttdoc">获取Arrange时子元素的垂直偏移量</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ab5832ef956cdc4face3e9dbd0c72e66e"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ab5832ef956cdc4face3e9dbd0c72e66e">sw::UIElement::NotifyLayoutUpdated</a></div><div class="ttdeci">void NotifyLayoutUpdated()</div><div class="ttdoc">通知顶级窗口布局改变</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ab7adb46425947c0b14b3bc5b60f6fdac"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ab7adb46425947c0b14b3bc5b60f6fdac">sw::UIElement::OnKeyDown</a></div><div class="ttdeci">virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override</div><div class="ttdoc">接收到WM_KEYDOWN时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ab8557638ba9975346d62f5339de55664"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ab8557638ba9975346d62f5339de55664">sw::UIElement::SetTextColor</a></div><div class="ttdeci">virtual void SetTextColor(Color color, bool redraw)</div><div class="ttdoc">设置文本颜色</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_abb7de98159e23ece7285c87a2592d7ea"><div class="ttname"><a href="classsw_1_1_u_i_element.html#abb7de98159e23ece7285c87a2592d7ea">sw::UIElement::RegisterRoutedEvent</a></div><div class="ttdeci">void RegisterRoutedEvent(THandleObj &amp;obj, void(THandleObj::*handler)(UIElement &amp;, TEventArgs &amp;))</div><div class="ttdoc">根据事件参数类型注册成员函数作为路由事件</div><div class="ttdef"><b>Definition</b> UIElement.h:308</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_abce4a26101de27550375c300b121d95d"><div class="ttname"><a href="classsw_1_1_u_i_element.html#abce4a26101de27550375c300b121d95d">sw::UIElement::MoveToTop</a></div><div class="ttdeci">void MoveToTop()</div><div class="ttdoc">移动到界面顶部</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ac020bc2d263e0dcffa59e0f474ea6e95"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ac020bc2d263e0dcffa59e0f474ea6e95">sw::UIElement::AddChild</a></div><div class="ttdeci">bool AddChild(UIElement *element, uint64_t layoutTag)</div><div class="ttdoc">添加子控件并设置布局标记</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ac0d66604bc2dd555c37688135878a7f0"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ac0d66604bc2dd555c37688135878a7f0">sw::UIElement::Float</a></div><div class="ttdeci">const Property&lt; bool &gt; Float</div><div class="ttdoc">元素是否悬浮，若元素悬浮则该元素不会随滚动条滚动而改变位置</div><div class="ttdef"><b>Definition</b> UIElement.h:210</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ac65b1a6485b454004801a296c788db6a"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ac65b1a6485b454004801a296c788db6a">sw::UIElement::OnMouseLeave</a></div><div class="ttdeci">virtual bool OnMouseLeave() override</div><div class="ttdoc">接收到WM_MOUSELEAVE时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ac8088cf88b28c6b4a5f93cd7a66a769e"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ac8088cf88b28c6b4a5f93cd7a66a769e">sw::UIElement::Arrange</a></div><div class="ttdeci">virtual void Arrange(const sw::Rect &amp;finalPosition) override</div><div class="ttdoc">安排控件位置</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aca1d15ee60f06d11aeccadfc92ed23d2"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aca1d15ee60f06d11aeccadfc92ed23d2">sw::UIElement::OnMenuCommand</a></div><div class="ttdeci">virtual void OnMenuCommand(int id) override</div><div class="ttdoc">当WM_COMMAND接收到菜单命令时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_acbe28513919da89bf3f9a5102d6353c3"><div class="ttname"><a href="classsw_1_1_u_i_element.html#acbe28513919da89bf3f9a5102d6353c3">sw::UIElement::~UIElement</a></div><div class="ttdeci">virtual ~UIElement()=0</div><div class="ttdoc">析构函数，这里用纯虚函数使该类成为抽象类</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_acf5b0f1e5c2e24390b7f267db28c595a"><div class="ttname"><a href="classsw_1_1_u_i_element.html#acf5b0f1e5c2e24390b7f267db28c595a">sw::UIElement::UpdateChildrenZOrder</a></div><div class="ttdeci">void UpdateChildrenZOrder()</div><div class="ttdoc">更新子元素的Z轴位置</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ad2be8df1de363a180ef2c32606e2fc74"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ad2be8df1de363a180ef2c32606e2fc74">sw::UIElement::OnKeyUp</a></div><div class="ttdeci">virtual bool OnKeyUp(VirtualKey key, KeyFlags flags) override</div><div class="ttdoc">接收到WM_KEYUP时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ad3360842adfd2298d4d505305250a6eb"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ad3360842adfd2298d4d505305250a6eb">sw::UIElement::OnMouseLeftButtonUp</a></div><div class="ttdeci">virtual bool OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) override</div><div class="ttdoc">接收到WM_LBUTTONUP时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ad685138138402ddd8a5fde67bbb85a45"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ad685138138402ddd8a5fde67bbb85a45">sw::UIElement::SetParent</a></div><div class="ttdeci">virtual bool SetParent(WndBase *parent) override</div><div class="ttdoc">设置父窗口</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ad825a0e12b75238b13f422f47ddf292b"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ad825a0e12b75238b13f422f47ddf292b">sw::UIElement::Parent</a></div><div class="ttdeci">const ReadOnlyProperty&lt; UIElement * &gt; Parent</div><div class="ttdoc">指向父元素的指针，当前元素为顶级窗口时该值为nullptr</div><div class="ttdef"><b>Definition</b> UIElement.h:190</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ad9f49244beb6b854b436e8bbd18f4e21"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ad9f49244beb6b854b436e8bbd18f4e21">sw::UIElement::VerticalAlignment</a></div><div class="ttdeci">const Property&lt; VerticalAlignment &gt; VerticalAlignment</div><div class="ttdoc">垂直对齐方式</div><div class="ttdef"><b>Definition</b> UIElement.h:175</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_adf8152f31c5e109ba016316182bcec47"><div class="ttname"><a href="classsw_1_1_u_i_element.html#adf8152f31c5e109ba016316182bcec47">sw::UIElement::IsRoutedEventRegistered</a></div><div class="ttdeci">bool IsRoutedEventRegistered(RoutedEventType eventType)</div><div class="ttdoc">判断路由事件是否已被注册</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ae3e134d807af7614e1cc812abb860762"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ae3e134d807af7614e1cc812abb860762">sw::UIElement::OnAddedChild</a></div><div class="ttdeci">virtual void OnAddedChild(UIElement &amp;element)</div><div class="ttdoc">添加子元素后调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ae43f4f3c5a5c723d29f20e5590641388"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ae43f4f3c5a5c723d29f20e5590641388">sw::UIElement::GetArrangeOffsetX</a></div><div class="ttdeci">double &amp; GetArrangeOffsetX()</div><div class="ttdoc">获取Arrange时子元素的水平偏移量</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ae513a79247f76498e8f586d4ced1ff6e"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ae513a79247f76498e8f586d4ced1ff6e">sw::UIElement::ShowContextMenu</a></div><div class="ttdeci">void ShowContextMenu(const Point &amp;point)</div><div class="ttdoc">弹出当前元素的上下文菜单</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ae5706cc9d6ef3fab9176ccded231b99e"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ae5706cc9d6ef3fab9176ccded231b99e">sw::UIElement::ContextMenu</a></div><div class="ttdeci">const Property&lt; sw::ContextMenu * &gt; ContextMenu</div><div class="ttdoc">右键按下时弹出的菜单</div><div class="ttdef"><b>Definition</b> UIElement.h:205</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_ae7e788c5e662363d6244414c5250a39d"><div class="ttname"><a href="classsw_1_1_u_i_element.html#ae7e788c5e662363d6244414c5250a39d">sw::UIElement::UpdateSiblingsZOrder</a></div><div class="ttdeci">void UpdateSiblingsZOrder()</div><div class="ttdoc">更新兄弟元素的Z轴位置</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aeaf2381fdffd82bd41e90c1a2cf69022"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aeaf2381fdffd82bd41e90c1a2cf69022">sw::UIElement::TextColor</a></div><div class="ttdeci">const Property&lt; Color &gt; TextColor</div><div class="ttdoc">文本颜色，修改该属性会同时将InheritTextColor属性设为false，对于部分控件该属性可能不生效</div><div class="ttdef"><b>Definition</b> UIElement.h:225</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aeebf42b059a9962fd9c2ba64dcc309ca"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aeebf42b059a9962fd9c2ba64dcc309ca">sw::UIElement::UIElement</a></div><div class="ttdeci">UIElement()</div><div class="ttdoc">初始化UIElement</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_aef217f2655c4a746606bf302edc16cf4"><div class="ttname"><a href="classsw_1_1_u_i_element.html#aef217f2655c4a746606bf302edc16cf4">sw::UIElement::Measure</a></div><div class="ttdeci">virtual void Measure(const Size &amp;availableSize) override</div><div class="ttdoc">测量控件所需尺寸</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_af4f4d3a0d23a886c0257c439821f5809"><div class="ttname"><a href="classsw_1_1_u_i_element.html#af4f4d3a0d23a886c0257c439821f5809">sw::UIElement::OnSize</a></div><div class="ttdeci">virtual bool OnSize(Size newClientSize) override</div><div class="ttdoc">接收到WM_SIZE时调用该函数</div></div>
<div class="ttc" id="aclasssw_1_1_u_i_element_html_af60b45de9f894f4fb152491413f1fa73"><div class="ttname"><a href="classsw_1_1_u_i_element.html#af60b45de9f894f4fb152491413f1fa73">sw::UIElement::SetBackColor</a></div><div class="ttdeci">virtual void SetBackColor(Color color, bool redraw)</div><div class="ttdoc">设置背景颜色</div></div>
<div class="ttc" id="aclasssw_1_1_wnd_base_html"><div class="ttname"><a href="classsw_1_1_wnd_base.html">sw::WndBase</a></div><div class="ttdoc">表示一个Windows窗口，是所有窗口和控件的基类</div><div class="ttdef"><b>Definition</b> WndBase.h:26</div></div>
<div class="ttc" id="astructsw_1_1_color_html"><div class="ttname"><a href="structsw_1_1_color.html">sw::Color</a></div><div class="ttdoc">颜色</div><div class="ttdef"><b>Definition</b> Color.h:12</div></div>
<div class="ttc" id="astructsw_1_1_key_flags_html"><div class="ttname"><a href="structsw_1_1_key_flags.html">sw::KeyFlags</a></div><div class="ttdoc">https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags</div><div class="ttdef"><b>Definition</b> Keys.h:11</div></div>
<div class="ttc" id="astructsw_1_1_point_html"><div class="ttname"><a href="structsw_1_1_point.html">sw::Point</a></div><div class="ttdoc">表示相对于左上角的点坐标</div><div class="ttdef"><b>Definition</b> Point.h:11</div></div>
<div class="ttc" id="astructsw_1_1_rect_html"><div class="ttname"><a href="structsw_1_1_rect.html">sw::Rect</a></div><div class="ttdoc">表示一个矩形区域</div><div class="ttdef"><b>Definition</b> Rect.h:13</div></div>
<div class="ttc" id="astructsw_1_1_routed_event_args_html"><div class="ttname"><a href="structsw_1_1_routed_event_args.html">sw::RoutedEventArgs</a></div><div class="ttdoc">路由事件的参数</div><div class="ttdef"><b>Definition</b> RoutedEvent.h:133</div></div>
<div class="ttc" id="astructsw_1_1_size_html"><div class="ttname"><a href="structsw_1_1_size.html">sw::Size</a></div><div class="ttdoc">尺寸</div><div class="ttdef"><b>Definition</b> Size.h:11</div></div>
<div class="ttc" id="astructsw_1_1_thickness_html"><div class="ttname"><a href="structsw_1_1_thickness.html">sw::Thickness</a></div><div class="ttdoc">表示矩形区域周围边框的厚度</div><div class="ttdef"><b>Definition</b> Thickness.h:10</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_01fcd3835fb4e7d9331b722d86291b65.html">sw</a></li><li class="navelem"><a class="el" href="dir_ed5f6ece24ffcc4307a76d27c2494db3.html">inc</a></li><li class="navelem"><b>UIElement.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
